package com.tiancai.pojo.vo;


import com.tiancai.pojo.po.UserRole;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(name = "用户登录信息")
public class UserLoginVo {


    @Schema(name = "用户id")
    private Long userId;

    @Schema(name = "用户名")
    private String username;
    @Schema(name = "用户邮箱")
    private String email;
    @Schema(name = "token")
    private String token;
    @Schema(name = "个人信息码")
    private String code;
    //用户角色
    @Schema(name = "用户角色")
    //返回角色数组，只要里面的角色，是String数组
    private List<String> roles;
}
